#ifndef MYTCPSERVER_H
#define MYTCPSERVER_H

#include"mytcpsocket.h"
#include <QTcpServer>
#include <QList>

class MyTcpServer : public QTcpServer
{
    Q_OBJECT
public:
    MyTcpServer();
    static MyTcpServer& getInstance();

    void incomingConnection(qintptr socketDescripor);

public slots:
    void deleteSocket(myTcpSocket* mySocket);

public:
    QList<myTcpSocket*> m_tcpSocketList;
};

#endif // MYTCPSERVER_H
